package pri.orm.web;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class ExcetionHandler {

    @ExceptionHandler(ArithmeticException.class)
    @ResponseBody
    public String excetion(){
        return "ArithmeticException";
    }

}
